package com.liuh.ssh2;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

public class HibernateUtil {

	static Configuration con;
	static SessionFactory ssf;

	static {
		con = new Configuration().configure();
		ssf = con.buildSessionFactory();
	}

	public static Session getSession() {
		return ssf.getCurrentSession();
	}
}
